package com.yeyks.vip.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 精选vip售卡佣金明细表
 * </p>
 *
 * @author yun
 * @since 2020-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "MiniCardCommissionBill对象", description = "精选vip售卡佣金明细表")
public class MiniCardCommissionBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "分佣账户id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "入账时卖卡订单号，提现和拒绝提现订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "操作金额(单位/分)")
    @TableField("operator_amount")
    private Integer operatorAmount;

    @ApiModelProperty(value = "类型1:卖卡分佣")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "状态1卖卡订单佣金进账，2提现出账，3提现拒绝")
    @TableField("operator_type")
    private Integer operatorType;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String ACCOUNT_ID = "account_id";

    public static final String ORDER_NO = "order_no";

    public static final String OPERATOR_AMOUNT = "operator_amount";

    public static final String TYPE = "type";

    public static final String OPERATOR_TYPE = "operator_type";

    public static final String REMARK = "remark";

    public static final String CREATE_TIME = "create_time";

    public enum Type {
        in(1, "卖卡订单佣金进账"),
        out(2, "提现出账"),
        reject(3, "提现拒绝");
        int value;
        String desc;

        Type(int value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public Integer value() {
            return this.value;
        }

        public String desc() {
            return this.desc;
        }
    }

}
